$(document).ready(function() {
	wHtml();
	$("#cImgDBI").click(function() {
		document.getElementById('fade').style.display = 'block';
		document.getElementById('bgI').style.display = "block";
		var iSrc = this.src;
		document.getElementById("bgID").src = iSrc;
	});
	$("#dImgDBI").click(function() {
		document.getElementById('fade').style.display = 'block';
		document.getElementById('bgI').style.display = "block";
		var iSrc = this.src;
		document.getElementById("bgID").src = iSrc;
	});
	$("#eImgDBI").click(function() {
		document.getElementById('fade').style.display = 'block';
		document.getElementById('bgI').style.display = "block";
		var iSrc = this.src;
		document.getElementById("bgID").src = iSrc;
	});
	$("#fImgDBI").click(function() {
		document.getElementById('fade').style.display = 'block';
		document.getElementById('bgI').style.display = "block";
		var iSrc = this.src;
		document.getElementById("bgID").src = iSrc;
	});
	$("#gImgDBI").click(function() {
		document.getElementById('fade').style.display = 'block';
		document.getElementById('bgI').style.display = "block";
		var iSrc = this.src;
		document.getElementById("bgID").src = iSrc;
	});
	$("#hImgDBI").click(function() {
		document.getElementById('fade').style.display = 'block';
		document.getElementById('bgI').style.display = "block";
		var iSrc = this.src;
		document.getElementById("bgID").src = iSrc;
	});
	$("#iImgDBI").click(function() {
		document.getElementById('fade').style.display = 'block';
		document.getElementById('bgI').style.display = "block";
		var iSrc = this.src;
		document.getElementById("bgID").src = iSrc;
	});
	$("#bgID").click(function() {
		document.getElementById('fade').style.display = 'none';
		document.getElementById('bgI').style.display = "none";
	});
});
function wHtml(){
	    var hContent = "<ul class='iLB' id='iLBU' style='margin-left:0px;'>";
		for(var i=1;i<7;i++){
			hContent += "<li>"+"<img src=\""+contextPath+"/resources/img/sbj"+i+".jpg\" width='45' height='40' onmouseover='viewPic(this)'/>"+"</li>";
		}
		hContent += "</ul>";
		document.getElementById("cImgDL2"). innerHTML = hContent;
		
		var hContent1 = "<ul class='iLB' id='iLBU1' style='margin-left:0px;'>";
		for(var i=1;i<3;i++){
			hContent1 += "<li>"+"<img src=\""+contextPath+"/resources/img/gls"+i+".jpg\" width='45' height='40' onmouseover='viewPic1(this)'/>"+"</li>";
		}
		hContent1 += "</ul>";
		document.getElementById("dImgDL2"). innerHTML = hContent1;
		
		var hContent2 = "<ul class='iLB' id='iLBU2' style='margin-left:0px;'>";
		for(var i=1;i<8;i++){
			hContent2 += "<li>"+"<img src=\""+contextPath+"/resources/img/szy"+i+".jpg\" width='45' height='40' onmouseover='viewPic2(this)'/>"+"</li>";
		}
		hContent2 += "</ul>";
		document.getElementById("eImgDL2"). innerHTML = hContent2;
		
		var hContent3 = "<ul class='iLB' id='iLBU3' style='margin-left:0px;'>";
		for(var i=1;i<6;i++){
			hContent3 += "<li>"+"<img src=\""+contextPath+"/resources/img/xgjl"+i+".jpg\" width='45' height='40' onmouseover='viewPic3(this)'/>"+"</li>";
		}
		hContent3 += "</ul>";
		document.getElementById("fImgDL2"). innerHTML = hContent3;
		
		var hContent4 = "<ul class='iLB' id='iLBU4' style='margin-left:0px;'>";
		for(var i=1;i<7;i++){
			hContent4 += "<li>"+"<img src=\""+contextPath+"/resources/img/shsz"+i+".jpg\" width='45' height='40' onmouseover='viewPic4(this)'/>"+"</li>";
		}
		hContent4 += "</ul>";
		document.getElementById("gImgDL2"). innerHTML = hContent4;
		
		var hContent5 = "<ul class='iLB' id='iLBU5' style='margin-left:0px;'>";
		for(var i=1;i<9;i++){
			hContent5 += "<li>"+"<img src=\""+contextPath+"/resources/img/shjg"+i+".jpg\" width='45' height='40' onmouseover='viewPic5(this)'/>"+"</li>";
		}
		hContent5 += "</ul>";
		document.getElementById("hImgDL2"). innerHTML = hContent5;
		
		var hContent6 = "<ul class='iLB' id='iLBU6' style='margin-left:0px;'>";
		for(var i=1;i<6;i++){
			hContent6 += "<li>"+"<img src=\""+contextPath+"/resources/img/hrjs"+i+".jpg\" width='45' height='40' onmouseover='viewPic6(this)'/>"+"</li>";
		}
		hContent6 += "</ul>";
		document.getElementById("iImgDL2"). innerHTML = hContent6;
}
function viewPic(_this){
	document.getElementById("cImgDBI").src = _this.src;
}
function viewPic1(_this){
	document.getElementById("dImgDBI").src = _this.src;
}
function viewPic2(_this){
	document.getElementById("eImgDBI").src = _this.src;
}
function viewPic3(_this){
	document.getElementById("fImgDBI").src = _this.src;
}
function viewPic4(_this){
	document.getElementById("gImgDBI").src = _this.src;
}
function viewPic5(_this){
	document.getElementById("hImgDBI").src = _this.src;
}
function viewPic6(_this){
	document.getElementById("iImgDBI").src = _this.src;
}
function setLM(){
	var mLeft = document.getElementById("iLBU").style.marginLeft;
	var lLeft = mLeft.split("p")[0];
	if(lLeft<0){
		document.getElementById("iLBU").style.marginLeft = parseInt(lLeft)+40+ "px";
	}
}
function setLM1(){
	var mLeft1 = document.getElementById("iLBU1").style.marginLeft;
	var lLeft1 = mLeft1.split("p")[0];
	if(lLeft1<0){
		document.getElementById("iLBU1").style.marginLeft = parseInt(lLeft1)+40+ "px";
	}
}
function setLM2(){
	var mLeft2 = document.getElementById("iLBU2").style.marginLeft;
	var lLeft2 = mLeft2.split("p")[0];
	if(lLeft2<0){
		document.getElementById("iLBU2").style.marginLeft = parseInt(lLeft2)+40+ "px";
	}
}
function setLM3(){
	var mLeft3 = document.getElementById("iLBU3").style.marginLeft;
	var lLeft3 = mLeft3.split("p")[0];
	if(lLeft3<0){
		document.getElementById("iLBU3").style.marginLeft = parseInt(lLeft3)+40+ "px";
	}
}
function setLM4(){
	var mLeft4 = document.getElementById("iLBU4").style.marginLeft;
	var lLeft4 = mLeft4.split("p")[0];
	if(lLeft4<0){
		document.getElementById("iLBU4").style.marginLeft = parseInt(lLeft4)+40+ "px";
	}
}
function setLM5(){
	var mLeft5 = document.getElementById("iLBU5").style.marginLeft;
	var lLeft5 = mLeft5.split("p")[0];
	if(lLeft5<0){
		document.getElementById("iLBU5").style.marginLeft = parseInt(lLeft5)+40+ "px";
	}
}
function setLM6(){
	var mLeft6 = document.getElementById("iLBU6").style.marginLeft;
	var lLeft6 = mLeft6.split("p")[0];
	if(lLeft6<0){
		document.getElementById("iLBU6").style.marginLeft = parseInt(lLeft6)+40+ "px";
	}
}
function setRM(){
	var mLeft = document.getElementById("iLBU").style.marginLeft;
	var lLeft = mLeft.split("p")[0];
	if(lLeft>-470){
		document.getElementById("iLBU").style.marginLeft = parseInt(lLeft)-40+ "px";
	}
}
function setRM1(){
	var mLeft1 = document.getElementById("iLBU1").style.marginLeft;
	var lLeft1 = mLeft1.split("p")[0];
	if(lLeft1>-470){
		document.getElementById("iLBU1").style.marginLeft = parseInt(lLeft1)-40+ "px";
	}
}
function setRM2(){
	var mLeft2 = document.getElementById("iLBU2").style.marginLeft;
	var lLeft2 = mLeft2.split("p")[0];
	if(lLeft2>-470){
		document.getElementById("iLBU2").style.marginLeft = parseInt(lLeft2)-40+ "px";
	}
}
function setRM3(){
	var mLeft3 = document.getElementById("iLBU3").style.marginLeft;
	var lLeft3 = mLeft3.split("p")[0];
	if(lLeft3>-470){
		document.getElementById("iLBU3").style.marginLeft = parseInt(lLeft3)-40+ "px";
	}
}
function setRM4(){
	var mLeft4 = document.getElementById("iLBU4").style.marginLeft;
	var lLeft4 = mLeft4.split("p")[0];
	if(lLeft4>-470){
		document.getElementById("iLBU4").style.marginLeft = parseInt(lLeft4)-40+ "px";
	}
}
function setRM5(){
	var mLeft5 = document.getElementById("iLBU5").style.marginLeft;
	var lLeft5 = mLeft5.split("p")[0];
	if(lLeft5>-470){
		document.getElementById("iLBU5").style.marginLeft = parseInt(lLeft5)-40+ "px";
	}
}
function setRM6(){
	var mLeft6 = document.getElementById("iLBU6").style.marginLeft;
	var lLeft6 = mLeft6.split("p")[0];
	if(lLeft6>-470){
		document.getElementById("iLBU6").style.marginLeft = parseInt(lLeft6)-40+ "px";
	}
}
function selectJSDW(){
	if(pName=="gldw"){
		document.getElementById("gldw").style.display="none";
		document.getElementById("jsdw").style.display="block";
	}
	if(pName=="sjdw"){
		document.getElementById("sjdw").style.display="none";
		document.getElementById("jsdw").style.display="block";
	}
	if(pName=="jldw"){
		document.getElementById("jldw").style.display="none";
		document.getElementById("jsdw").style.display="block";
	}
	if(pName=="sgdw1"){
		document.getElementById("sgdw1").style.display="none";
		document.getElementById("jsdw").style.display="block";
	}
	if(pName=="sgdw2"){
		document.getElementById("sgdw2").style.display="none";
		document.getElementById("jsdw").style.display="block";
	}
	if(pName=="sgdw3"){
		document.getElementById("sgdw3").style.display="none";
		document.getElementById("jsdw").style.display="block";
	}
	pName="jsdw";
}
function selectGLDW(){
	if(pName=="jsdw"){
		document.getElementById("jsdw").style.display="none";
		document.getElementById("gldw").style.display="block";
	}
	if(pName=="sjdw"){
		document.getElementById("sjdw").style.display="none";
		document.getElementById("gldw").style.display="block";
	}
	if(pName=="jldw"){
		document.getElementById("jldw").style.display="none";
		document.getElementById("gldw").style.display="block";
	}
	if(pName=="sgdw1"){
		document.getElementById("sgdw1").style.display="none";
		document.getElementById("gldw").style.display="block";
	}
	if(pName=="sgdw2"){
		document.getElementById("sgdw2").style.display="none";
		document.getElementById("gldw").style.display="block";
	}
	if(pName=="sgdw3"){
		document.getElementById("sgdw3").style.display="none";
		document.getElementById("gldw").style.display="block";
	}
	pName="gldw";
}
function selectSJDW(){
	if(pName=="jsdw"){
		document.getElementById("jsdw").style.display="none";
		document.getElementById("sjdw").style.display="block";
	}
	if(pName=="gldw"){
		document.getElementById("gldw").style.display="none";
		document.getElementById("sjdw").style.display="block";
	}
	if(pName=="jldw"){
		document.getElementById("jldw").style.display="none";
		document.getElementById("sjdw").style.display="block";
	}
	if(pName=="sgdw1"){
		document.getElementById("sgdw1").style.display="none";
		document.getElementById("sjdw").style.display="block";
	}
	if(pName=="sgdw2"){
		document.getElementById("sgdw2").style.display="none";
		document.getElementById("sjdw").style.display="block";
	}
	if(pName=="sgdw3"){
		document.getElementById("sgdw3").style.display="none";
		document.getElementById("sjdw").style.display="block";
	}
	pName="sjdw";
}
function selectJLDW(){
	if(pName=="jsdw"){
		document.getElementById("jsdw").style.display="none";
		document.getElementById("jldw").style.display="block";
	}
	if(pName=="gldw"){
		document.getElementById("gldw").style.display="none";
		document.getElementById("jldw").style.display="block";
	}
	if(pName=="sjdw"){
		document.getElementById("sjdw").style.display="none";
		document.getElementById("jldw").style.display="block";
	}
	if(pName=="sgdw1"){
		document.getElementById("sgdw1").style.display="none";
		document.getElementById("jldw").style.display="block";
	}
	if(pName=="sgdw2"){
		document.getElementById("sgdw2").style.display="none";
		document.getElementById("jldw").style.display="block";
	}
	if(pName=="sgdw3"){
		document.getElementById("sgdw3").style.display="none";
		document.getElementById("jldw").style.display="block";
	}
	pName="jldw";
}
function selectSGDW1(){
	if(pName=="jsdw"){
		document.getElementById("jsdw").style.display="none";
		document.getElementById("sgdw1").style.display="block";
	}
	if(pName=="gldw"){
		document.getElementById("gldw").style.display="none";
		document.getElementById("sgdw1").style.display="block";
	}
	if(pName=="sjdw"){
		document.getElementById("sjdw").style.display="none";
		document.getElementById("sgdw1").style.display="block";
	}
	if(pName=="jldw"){
		document.getElementById("jldw").style.display="none";
		document.getElementById("sgdw1").style.display="block";
	}
	if(pName=="sgdw2"){
		document.getElementById("sgdw2").style.display="none";
		document.getElementById("sgdw1").style.display="block";
	}
	if(pName=="sgdw3"){
		document.getElementById("sgdw3").style.display="none";
		document.getElementById("sgdw1").style.display="block";
	}
	pName="sgdw1";
}
function selectSGDW2(){
	if(pName=="jsdw"){
		document.getElementById("jsdw").style.display="none";
		document.getElementById("sgdw2").style.display="block";
	}
	if(pName=="gldw"){
		document.getElementById("gldw").style.display="none";
		document.getElementById("sgdw2").style.display="block";
	}
	if(pName=="sjdw"){
		document.getElementById("sjdw").style.display="none";
		document.getElementById("sgdw2").style.display="block";
	}
	if(pName=="jldw"){
		document.getElementById("jldw").style.display="none";
		document.getElementById("sgdw2").style.display="block";
	}
	if(pName=="sgdw1"){
		document.getElementById("sgdw1").style.display="none";
		document.getElementById("sgdw2").style.display="block";
	}
	if(pName=="sgdw3"){
		document.getElementById("sgdw3").style.display="none";
		document.getElementById("sgdw2").style.display="block";
	}
	pName="sgdw2";
}
function selectSGDW3(){
	if(pName=="jsdw"){
		document.getElementById("jsdw").style.display="none";
		document.getElementById("sgdw3").style.display="block";
	}
	if(pName=="gldw"){
		document.getElementById("gldw").style.display="none";
		document.getElementById("sgdw3").style.display="block";
	}
	if(pName=="sjdw"){
		document.getElementById("sjdw").style.display="none";
		document.getElementById("sgdw3").style.display="block";
	}
	if(pName=="jldw"){
		document.getElementById("jldw").style.display="none";
		document.getElementById("sgdw3").style.display="block";
	}
	if(pName=="sgdw1"){
		document.getElementById("sgdw1").style.display="none";
		document.getElementById("sgdw3").style.display="block";
	}
	if(pName=="sgdw2"){
		document.getElementById("sgdw2").style.display="none";
		document.getElementById("sgdw3").style.display="block";
	}
	pName="sgdw3";
}